package cn.hengzhu.main_manager.service;

import java.math.BigDecimal;

import com.alipay.api.response.AlipayTradeRefundResponse;

import cn.hengzhu.main_manager.repository.domain.CustomersAmount;
import cn.hengzhu.main_manager.repository.domain.PayOrder;

public interface CustomersAmountService {

	void backPayByAli(AlipayTradeRefundResponse response, CustomersAmount customersAmount);

	void rechargeFinishByAliXCX(PayOrder payOrder);

	/**
	 * 清空押金
	 * @param openId
	 */
	void clearPledge(String openId);

	/**
	 * 设置押金
	 * 
	 * @author 周磊
	 * @since 2019年6月30日
	 * @param openId
	 */
	void setPledge(String openId, BigDecimal pledge);


	/**
	 * 用户是否欠费
	 * @param openId
	 * @return
	 */
	CustomersAmount isOwe(String openId);
}
